//
//  XJSearchShopsCell.m
//  XinJiangMall
//
//  Created by RaoBo on 2018/7/4.
//  Copyright © 2018年 Tzyang. All rights reserved.
//

#import "XJSearchShopsCell.h"
@interface XJSearchShopsCell()

@property (weak, nonatomic) IBOutlet UIImageView *iconIV;
@property (weak, nonatomic) IBOutlet UILabel *shopNameLb;
@end

@implementation XJSearchShopsCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    
    self.iconIV.layer.masksToBounds = YES;
    self.iconIV.layer.cornerRadius = 10;
}



- (void)setSearchModel:(XJSearchShopModel *)searchModel {
    
    NSURL *imgUrl = [NSURL URLWithString:searchModel.avatar];
    
    UIImage *placeholderImg = [UIImage imageNamed:@"default_goods"];
    
    [self.iconIV sd_setImageWithURL:imgUrl placeholderImage:placeholderImg];
    self.shopNameLb.text = searchModel.name;
}

@end
